<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CarModel extends Model
{
    //
     protected $table="cars";
    protected $primaryKey="carid";
    protected $fillable=["username","productid","productname","price","nums"];
    public $timestamps = false;

     public function add($data){

    	return self::create($data);
     }
   public function update1($carid,$data){

    	return self::find($carid)->update($data);
    }
}
